package com.gadarts.parashoot.misc;

import android.graphics.Bitmap;

import com.gadarts.parashoot.GameModel;
import com.gadarts.parashoot.GameObject;
import com.gadarts.parashoot.GameView;

public class FlyingPart extends GameObject {

	public FlyingPart(GameModel model, GameView view, Bitmap image,
			int x, int y, int speed, int direction, int depth) {
		super(model, view, image, x, y, speed, direction, depth, true);
		super.child = this;
		gravityStatus = true;
	}

	@Override
	public void update() {
		super.update();
		if (isTouchingGround())
			model.destroyObject(this, this.getClass());
	}
}
